<template>
  <div id="detailGoodsInfo" v-if="Object.keys(detailInfo).length !== 0">
    <div class="desc">
      {{ detailInfo.desc }}
    </div>

    <div class="info-key">{{ detailInfo.detailImage[0].key }}</div>
    <div class="info-img">
      <img
        :src="src"
        alt=""
        v-for="(src, index) in detailInfo.detailImage[0].list"
        :key="index"
      />
    </div>
  </div>
</template>

<script>
export default {
  name: "detailGoodsInfo",
  props: {
    detailInfo: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>

<style scoped>
.desc {
  font-size: 14px;
  padding: 10px;
  text-align: center;
}
.info-key {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding-top: 20px;
}
.info-img {
  width: 100%;
  text-align: center;
}
.info-img img {
  width: 97%;
  padding-top: 10px;
}
#detailGoodsInfo {
  margin-bottom: 10px;
  border-bottom: 3px solid #f1f0f0;
}
</style>
